﻿using System;
using System.Data;

namespace LectorXML
{
    public delegate void FileNamesReadyEventHandler(object sender, FileNamesReadyEventArgs e);
    public delegate void FilesReadyEventHandler(object sender, FilesReadyEventArgs e);

    public delegate void ReportErrorEventHandler(object sender, ReportErrorEventArgs e);

    public class FileNamesReadyEventArgs : EventArgs
    {
        private object results;

        public object GetResults
        {
            get { return results; }
        }

        public FileNamesReadyEventArgs(object refResults)
        {
            results = refResults;
        }
    }

    public class FilesReadyEventArgs : EventArgs
    {
        public FilesReadyEventArgs()
        {
        }
    }

    public class ReportErrorEventArgs : EventArgs
    {
        private string reason;

        public string FailureReason
        {
            get { return reason; }
            set { reason = value; }
        }

        public ReportErrorEventArgs()
        {
        }
    }
}